﻿// Copyright © Microsoft Corporation. All Rights Reserved. 
// This code released under the terms of the
// Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.) 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace smarx.BlobSync
{
    public class Ruby : IRunner
    {
        public IEnumerable<string> DetectionFiles
        {
            get
            {
                return new [] {
                    "app.rb"
                };
            }
        }
        public IEnumerable<CommandWithArguments> DependencyCommands
        {
            get
            {
                return new [] {
                    new CommandWithArguments(Environment.GetEnvironmentVariable("ComSpec"), "/c bundle install")
                };
            }
        }

        public CommandWithArguments RunCommand
        {
            get
            {
                return new CommandWithArguments("ruby", "app.rb");
            }
        }
    }
}
